"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _utils = require("../utils");
var _default = exports.default = (0, _utils.createMeta)('Select', {
  title: '下拉选择',
  priority: 998,
  props: [{
    title: '基础配置',
    type: 'group',
    display: 'accordion',
    items: (0, _utils.getInputPropsBasic)({
      name: 'defaultValue',
      title: {
        label: '默认值',
        tip: 'defaultValue | 默认值'
      },
      setter: 'JsonSetter'
    })
  }, _utils.optionsProp],
  snippets: [{
    title: '下拉单选',
    screenshot: 'icon-select',
    schema: {
      componentName: 'Select',
      props: {
        title: '下拉单选',
        type: 'string',
        props: {
          options: [{
            label: 'A',
            value: 'A'
          }, {
            label: 'B',
            value: 'B'
          }]
        }
      }
    }
  }, {
    title: '下拉多选',
    screenshot: 'icon-multiSelect',
    schema: {
      componentName: 'Select',
      props: {
        title: '下拉多选',
        type: 'array',
        widget: 'multiSelect',
        props: {
          options: [{
            label: 'A',
            value: 'A'
          }, {
            label: 'B',
            value: 'B'
          }]
        }
      }
    }
  }]
});